/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.epos.qkorder;

import cn.ekuma.epos.datalogic.I_DataLogicCustomers;
import cn.ekuma.epos.datalogic.I_DataLogicSales;
import cn.ekuma.security.I_SecurityManager;

import com.openbravo.bean.erp.Order;
import com.openbravo.bean.erp.OrderLine;
import com.openbravo.data.basic.BasicException;
import com.openbravo.pos.sales.TaxesException;

import java.util.List;


/**
 *
 * @author Administrator
 */
public interface OrdersEditor {
   public static String TICKET_Closed="ticket_closed";
   public static String TICKET_Changed="ticket_changed";


   public void setActiveOrder(Order oTicket, Object oTicketExt,boolean editModel); // el ticket mas informacion extra...
   public Order getActiveOrder();
   
   public Order getReCalcActiveOrder()throws TaxesException, BasicException;

   public I_DataLogicCustomers getDlCustomers();
   public I_DataLogicSales getDlSales();

   public boolean isEditAble();

    public void addOrderLines(List<OrderLine> lines);
    
   public I_SecurityManager getSecurityManager();
}
